from .views import welcome
from django.urls import path
from rest_framework.routers import SimpleRouter
from .views import BannerView,CollectionView,AreaView,StatisticsView,FaceView

router = SimpleRouter()
router.register('banner', BannerView, 'banner')
router.register('collection', CollectionView, 'collection')
router.register('area', AreaView, 'area')
router.register('statistics', StatisticsView, 'statistics')
router.register('face', FaceView, 'face')

urlpatterns = [
      path('welcome/',welcome) #获取图片数据 http://127.0.0.1:8000/smart/welcome
]
urlpatterns += router.urls
